﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Game
{
   // 不可移动物体
   class FixedObject : IGameObject
   {
      public char Name { get; set; }
      public int X { get; set; }
      public int Y { get; set; }
      public bool IsMovable { get => false; }
      // 是否为目标点
      public bool IsGoal { get; set; }

      // 初始化不可移动物体
      public FixedObject(int x, int y, bool isGoal = false)
      {
         this.X = x;
         this.Y = y;
         this.IsGoal = isGoal;
         this.Name = IsGoal ? 'G' : '#';
      }
   }
}
